package com.zbiti.anvil.basic.module.business.autoconfigure;


import com.zbiti.anvil.basic.module.business.api.service.IBook2Service;
import com.zbiti.anvil.basic.module.business.service.mapper.Book2Mapper;
import com.zbiti.anvil.basic.module.business.service.service.impl.Book2ServiceImpl;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * book2自动装配
 *
 * @author generator
 * @date 2025-04-08 12:17:44
 */
@Configuration
public class Book2Configuration {

    /**
     * book2服务
     *
     * @param book2Mapper book2Mapper
     * @return 服务对象
     */
    @Bean(name = "book2ServiceImpl")
    @ConditionalOnMissingBean(name = "book2ServiceImpl")
    public IBook2Service book2ServiceImpl(Book2Mapper book2Mapper) {
        return new Book2ServiceImpl(book2Mapper);
    }

}
